package com.dragon.flow.constant;

/**
 * @title:
 * @author: bruce.liu
 * @since: 2024/8/13 23:09
 */
public interface FlowablePlusConstant {
    int DEL_FLAG_0 = 0;
    int DEL_FLAG_1 = 1;
    String BpmnErrorCode = "bpmnErrorCode";
    String REDIS_SPRINGCLOUD_LOCK_KEY = "flow:center:springCloud:paramsKey:";
    String REDIS_REST_LOCK_KEY = "flow:center:rest:paramsKey:";
    //流程定义缓存id前缀
    String PROCESS_DEFINITON_CACHEKEY_PREFIX = "flow:center:cache:processDefiniton:";
    //缓存节点前缀
    String PROCESS_INSTANCE_ACTIVITYCACHE_PREFIX = "flow:center:cache:processInstance:activity:";
    String USERTASK_ACTIVITYCACHE_PREFIX = "flow:center:cache:usertask:activity:";
    /**
     * 提交人的变量名称 用于驳回
     */
    String FLOW_SUBMITTER_VAR = "initiator";
    /**
     * 提交人节点名称
     */
    String FLOW_SUBMITTER = "提交人";
    //发起人的工号
    String FLOW_STARTER_CODE_VAR = "starterCode";
    /**
     * 自动跳过节点设置属性
     */
    String FLOWABLE_SKIP_EXPRESSION_ENABLED = "_FLOWABLE_SKIP_EXPRESSION_ENABLED";
    String APP_SN = "flow";
    //job的交换器名称
    String FLOWABLE_JOB_EXCHAGE = "flowable-job-exchage";
    //job的队列名称
    String FLOWABLE_JOBS = "flowable-jobs";
    //设置临时变量
    String FLOW_TO = "flow_to";
    String NEXT_USER = "next_user";
    String NEXT_SEQUENCE_FLOW_LABEL = "nextSequenceFlow";
    String NEXT_USER_LABEL = "nextUser";
    //节点缓存redis队列名称
    String ACTIVITY_CACHE_REDIS_QUEUE = "activity_cache_redis_queue";
    String FLOWABLE_NOTICE_MESSAGE_EXCHAGE = "flowable-notice-message-exchage";
    //消息任务队列名称
    String FLOWABLE_NOTICE_MESSAGE_QUEUE = "queue.flow.notice.message";
    //当前时间的变量名称
    String CURRENT_DATE = "currentDate";
    String RABBIT = "rabbit";
    String REDIS = "redis";
}
